//
//  TodoHttpManager.h
//  JinChengYun
//
//  Created by 金橙云 on 2017/3/7.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import <Foundation/Foundation.h>


#import "ASIFormDataRequest.h"
#import "ASINetworkQueue.h"

#define ONLY_URL @"http://login.jincheng-yun.com/app/user_login"//单一登录接口
//#define SERVE_URL @"https://www.jincheng-yun.com/index/"    //服务器接口
#define IMG_URL @"http://122.114.233.133/root/"  //头像接口
#define SERVE_URL   [[NSUserDefaults standardUserDefaults] objectForKey:@"ONLY_URL"]



#define GET_LOGIN_URL   @"index.php?m=Api&a=login" //登陆接口

#define YONGJIN_WUYE_URL @"index.php?m=Apifunc&a=get_wylx"//佣金分析--物业类型下拉
#define JUNJIA_WUYE_URL @"index.php?m=Apifunc&a=junjia_wylx"//均价动态--物业类型获取
#define YONGJIN_ZHIYEGUWEN_URL @"index.php?m=Apifunc&a=get_adviser"//佣金管理--置业顾问下拉


#define GET_MINE_GETINFO_URL @"index.php?m=Api&a=user_info" //个人信息获取
#define GET_MINE_SETINFO_URL @"index.php?m=Api&a=user_save" //个人信息修改
#define GET_MINE_MESSAGE_URL @"index.php?m=Api&a=message_index"//站内信

/*置业顾问 */
#define GU_WORK_URL @"index.php?m=ApiAdviser&a=work_note"//工作任务

/* 置业顾问---客户管理-来电客户*/
#define GU_DROPDOWN_URL @"index.php?m=apifunc&a=calller_add_message"//下拉菜单
#define GU_PHONE_URL @"index.php?m=ApiAdviser&a=caller_infor"//来电客户
#define GU_PHONE_DETAILS_URL @"index.php?m=ApiAdviser&a=caller_view"//来电详情
#define GU_PHONE_XIU_URL @"index.php?m=ApiAdviser&a=caller_edit2"//修改来电
#define GU_PHONE_ZENG_URL @"index.php?m=ApiAdviser&a=caller_add"//新增来电
#define GU_PHONE_GENBIAO_URL @"index.php?m=ApiAdviser&a=caller_follow_list"//跟进列表
#define GU_PHONE_GEN_URL @"index.php?m=ApiAdviser&a=caller_follow_add"//添加跟进

/* 置业顾问---客户管理-来访客户*/
#define GU_KE_LAIFANG_URL @"index.php?m=ApiAdviser&a=visit_infor" //来访客户
#define GU_KE_LAIFANGX_URL @"index.php?m=ApiAdviser&a=visit_view"//来访详情
#define GU_KE_XLAIFANG_URL @"index.php?m=ApiAdviser&a=visit_edit2"//修改来访
#define GU_KE_ZLAIFANG_URL @"index.php?m=ApiAdviser&a=visit_add"//新增来访
#define GU_KE_GENBIAO_URL @"index.php?m=ApiAdviser&a=visit_follow_list"//跟进列表
#define GU_KE_LAIFANGG_URL @"index.php?m=ApiAdviser&a=visit_follow_add"//添加跟进



/*置业顾问--我的业绩*/
#define GU_ME_YEJI_URL @"index.php?m=ApiAdviser&a=renchou"//我的业绩主售--认筹
#define GU_ME_YERENGOU_URL @"index.php?m=ApiAdviser&a=zs_rengou"//我的业绩--主售--认购
#define GU_ME_RENGOUDATILS_URL @"index.php?m=ApiAdviser&a=zs_rengou_info"//我的业绩主售--认购详情
#define GU_ME_QIANYUE_URL @"index.php?m=ApiAdviser&a=zs_sign"//我的业绩主售--签约
#define GU_ME_QIANDATALIS_URL @"index.php?m=ApiAdviser&a=zs_sign_info"//我的业绩主售--签约详情



#define GU_ME_BUSREN_URL @"index.php?m=ApiAdviser&a=sy_rengou"//我的业绩--商业房源--认购
#define GU_ME_BUSRENX_URL @"index.php?m=ApiAdviser&a=sy_rengou_info"//我的业绩--商业房源--认购详情
#define GU_ME_BUSQIAN_URL @"index.php?m=ApiAdviser&a=sy_sign"//我的业绩--商业房源--签约
#define GU_ME_BUSQIANX_URL @"index.php?m=ApiAdviser&a=sy_sign_info"//我的业绩--商业房源--签约详情



#define GU_ME_PEI_URL @"index.php?m=ApiAdviser&a=pt_rengou"//我的业绩--配套--认购
#define GU_ME_PEIX_URL @"index.php?m=ApiAdviser&a=pt_rengou_info"//我的业绩--peit--认购详情




/*置业顾问--我的佣金*/
#define GU_ME_YONGJINK_URL @"index.php?m=ApiManager&a=yongjin"//我的佣金--客户详情
#define GU_ME_YONGJINX_URL @"index.php?m=ApiManager&a=yongjin_info"//我的佣金--佣金详情
#define GU_ME_YJJIESUANX_URL @"index.php?m=ApiManager&a=yongjin_analyse"//我的佣金--结算详情


/*置业顾问--房源销售*/
#define GU_HOUSE_ZHUSHOU_URL @"index.php?m=Api&a=project_list"//主售房源
#define GU_HOUSE_ZSUNIT_URL @"index.php?m=Api&a=project_info"//主售房源单元
#define GU_HOUSE_ZSMESSAGE_URL @"index.php?m=Api&a=room_info"//主售房源信息

#define GU_HOUSE_BUS_URL @"index.php?m=Api&a=business_list"//商业房源
#define GU_HOUSE_BUSPEI_URL @"index.php?m=Api&a=under_list"//配套房源
#define GU_HOUSE_BUSTOU_URL @"index.php?m=Api&a=under_info"//表头(配套/商业)
#define GU_HOUSE_BUSPF_URL @"index.php?m=Api&a=under_rooms"//房源(配套/商业)

#define GU_HOUSE_YOU_URL @"index.php?m=Api&a=sale_discount"//房源优惠
#define GU_HOUSE_YULIU_URL @"index.php?m=Api&a=yuliu_room"//房源预留



/*销售经理---销售动态*/
#define MANAGER_YOUHUI_BIAO_URL @"index.php?m=ApiManager&a=yh_shenpi"//销售经理--特别优惠列表
#define MANAGER_YOUHUI_XIANG_URL @"index.php?m=ApiManager&a=yh_shenpi_info"//销售经理--特别优惠详情
#define MANAGER_YOUHUI_CHAXUN_URL @"index.php?m=ApiManager&a=tbyh_info"//1.2.1--特别优惠查询
#define MANAGER_YOUHUI_BAOCUN_URL @"index.php?m=ApiManager&a=tbyh_add"//1.2.2--特别优惠保存


#define MANAGER_FIRST_SALES_URL @"index.php?m=ApiManager&a=log"//销售经理---销售动态页面--销售动态
#define MANAGER_FIRST_MONEY_URL @"index.php?m=ApiManager&a=back_money_analyse"//销售动态页面--回款动态
#define MANAGER_FIRST_JUNJIA_URL @"index.php?m=ApiManager&a=junjia_analyse"//销售动态页面--均价动态(表)
#define MANAGER_FIRST_JUNJIABIAO_URL @"index.php?m=ApiManager&a=junjia_analyse_data"//销售动态页面--销售动态(图)






/*销售经理---营销分析*/
#define MANAGER_SECOND_KEHU_URL @"index.php?m=ApiManager&a=kehu_analyse"//经理--营销--客户分析
#define MANAGER_KEFENSOUSUO_URL @"index.php?m=ApiManager&a=visit_analyse"//经理--营销--客户分析搜索
#define MANAGER_SECOND_QUHUA_URL @"index.php?m=ApiManager&a=quhua_analyse"//经理--营销--去化分析
#define MANAGER_SECOND_AD_URL @"index.php?m=ApiManager&a=adv_analyse"//经理--营销--广告表分析
#define MANAGER_SECOND_ADTU_URL @"index.php?m=ApiManager&a=adv_analyse_data"//经理--营销--广告图分析



/*  CEO=======CEO 个人中心--价格审批 */

#define CEO_ZHU_SHENPILB_URL @"index.php?m=ApiCeo&a=zs_shenpi"//CEO--(主售)审批列表
#define CEO_ZHU_UNIT_URL @"index.php?m=ApiCeo&a=zs_shenpi_unit"//CEO--(主售)单元
#define CEO_ZHU_HOUSE_URL @"index.php?m=ApiCeo&a=zs_shenpi_rooms"//CEO--(主售)房源
#define CEO_ZHU_JIASM_URL @"index.php?m=ApiCeo&a=zs_shenpi_djsm"//CEO--(主售)定价说明
#define CEO_ZHU_JIASP_URL @"index.php?m=ApiCeo&a=zs_shenpi_deal"//CEO--(主售)定价审批




#define CEO_BUS_SPLB_URL @"index.php?m=ApiCeo&a=sy_shenpi"//CEO--(商业)审批列表
#define CEO_PEIT_SHENLI_URL @"index.php?m=ApiCeo&a=pt_shenpi"//CEO--(配套)审批列表
#define CEO_BUSPEI_SPX_URL @"index.php?m=ApiCeo&a=under_shenpi_info"//CEO--(配套/商业)审批详情
#define CEO_BUSPEI_DINGSM_URL @"index.php?m=ApiCeo&a=under_shenpi_djsm"//CEO--(配套/商业)定价说明
#define CEO_BUSPEI_DJSHENPI_URL @"index.php?m=ApiCeo&a=under_shenpi_deal"//CEO--(配套/商业)定价审批



//TODO:  /*  CEO=======CEO 个人中心--优惠政策审批 */
#define CEO_PREFERENTIAL_LIEBIAO_URL @"index.php?m=ApiCeo&a=yhzc_shenpi"//CEO--优惠政策列表
#define CEO_PREFERENTIAL_X_URL @"index.php?m=ApiCeo&a=yhzc_shenpi_info"//CEO--优惠政策详情
#define CEO_PREFER_SHENP_URL @"index.php?m=ApiCeo&a=yhzc_shenpi_deal"//CEO--优惠政策列审批


//TODO:   /*  CEO=======CEO 个人中心--特别优惠审批 */
#define CEO_TEBLIEBIAO_URL @"index.php?m=ApiCeo&a=tbyh_shenpi"//CEO--特别优惠列表
#define CEO_TEBIE_X_URL @"index.php?m=ApiCeo&a=tbyh_shenpi_info"//CEO--特别优惠详情
#define CEO_TEBIE_SHENPI_URL @"index.php?m=ApiCeo&a=tbyh_shenpi_deal"//CEO--特别优惠审批



#define CEO_MESSAGE_URL @"index.php?m=Api&a=news"//消息提醒------小红点


//TODO:    *来电来访修改           */
#define CALL_GENJIN_URL @"index.php?m=ApiAdviser&a=ld_info"//来电跟进页面
#define CALL_GUANHUAI_URL @"index.php?m=ApiAdviser&a=ld_care"//2来电关怀
#define CALL_GUANBAOCUN_URL @"index.php?m=ApiAdviser&a=ld_care_save"//3来电关怀保存
#define VISIT_GENJIN_URL @"index.php?m=ApiAdviser&a=lf_info"//5来访跟进页面
#define VISIT_GUNAHUAI_URL @"index.php?m=ApiAdviser&a=lf_care"//6来访关怀
#define VISIT_GUANCUN_URL @"index.php?m=ApiAdviser&a=lf_care_save"//7来访关怀保存
#define GENJINGAI_URL @"index.php?m=ApiAdviser&a=genjin_save"//跟进记录修改




//TODO:  CEO 优惠政策审批---URL
/*-------------------优惠政策列表-------------------*/
#define CEOYOUHUI_ZHUSHOU_URL @"index.php?m=ApiCeo&a=main_index"//主售房源
#define CEOYOUHUI_BUSNESS_URL @"index.php?m=ApiCeo&a=mall_index"//商业房源
#define CEOYOUHUI_SPKING_URL @"index.php?m=ApiCeo&a=park_index"//车位
#define CEOYOUHUI_STOREROOM_URL @"index.php?m=ApiCeo&a=store_index"//储藏室



#define CEOZHUSHOU_UNIT_URL @"index.php?m=ApiCeo&a=main_unit"//主售房源（单元）
#define CEOZHUSHOU_HOUSE_URL @"index.php?m=ApiCeo&a=main_room"//主售房源（房源）
#define CEOBUSNESS_URL @"index.php?m=ApiCeo&a=mall_view"//商业房源
#define CEOSPKING_URL @"index.php?m=ApiCeo&a=park_view"//车位房源
#define CEOSTOROOM_URL @"index.php?m=ApiCeo&a=store_view"//储藏室房源
#define CEOYOUHUILOOK_URL @"index.php?m=ApiCeo&a=youhui"//优惠查看
#define CEOYOUAGREE_URL @"index.php?m=ApiCeo&a=yhzc_zhixing"//优惠政策执行
#define CEOYOU_UNAGREE_URL @"index.php?m=ApiCeo&a=yhzc_bohui"//优惠政策驳回










#define USER_NOTIFI_KEY_TYPE @"NotifiType"//通知类型
#define USER_INFO_KEY_TYPE @"requestType"







//宏定义通知的名字
#define TDOnlyLogin @"登录"
#define TDGetLogin @"TdGetLogin" //用户登录



#define TDYongJinWuYeType @"佣金分析--物业类型下拉" //佣金分析--物业类型下拉
#define TDJunJIaWuYeType @"物业类型获取"//均价动态--物业类型获取
#define TDYongJinZhiYeGuWen @"置业顾问下拉"//佣金管理--置业顾问下拉


#define TDGetMineGetInfo @"TdGetMineInfo" //个人信息获取
#define TDGetSetMineGetInfo @"TdGetSetMineInfo" //个人信息修改
#define TDGetMineMessage @"TdGetMineMessage"//站内信


/*置业顾问 */
#define TDGuWenWork @"TdGuWenWork"//工作任务

/* 置业顾问---客户管理-来电客户*/
#define TDGuDropDown @"TdGuDropDown"//下拉菜单
#define TDGuPhone @"TdGuPhone"//来电客户
#define TDGuPhoneDetails @"TdGuPhoneDetails"//来电详情
#define TDGuPhoneXiu @"TdGuPhoneXiu"//修改来电
#define TDGuPhoneZeng @"TdGuPhoneZeng"//新增来电
#define TDGuPhoneGenJinBIao @"来电跟进列表"//跟进列表
#define TDGuPhoneGen @"TdGuPhoneGen"//添加跟进


/* 置业顾问---客户管理-来访客户*/
#define TDGuKeLaiF @"TDGuKeLaiF"//来访客户
#define TDGuKeLaiFX @"TDGuKeLaiFX"//来访详情
#define TDGuKeXLaiFX @"TDGuKeXLaiFX"//修改来访
#define TDGuKeZLaiF @"TDGuKeZLaiF"//新增来访
#define TDGuKeVisitBiao @"TdGuKeVisitBiao"//跟进列表
#define TDGuKeGLaiF @"TdGuKeGLaiF"//添加跟进




/*置业顾问--我的业绩*/
#define TDGuMeZhuRen @"TdGuMeZhuRen"//我的业绩主售--认筹
#define TDGMZhuRenGou @"TdGMZhuRenGou"//我的业绩主售--认购
#define TDGMZhuRengouDatils @"TdGMZhuRengouDatils"//我的业绩主售--认购详情
#define TDGMZhuQianYue @"TdGMZhuQianYue"//我的业绩主售--签约
#define TDGMZhuQianYUeDatials @"TdGMZhuQianYUeDatials"//我的业绩主售--签约详情

#define TDGMShangRenGou @"TdGMShangRenGou"//我的业绩--商业房源--认购
#define TDGMShangRenGouX @"TdGMShangRenGouX"//我的业绩--商业房源--认购详情
#define TDGMQianYue @"TdGMQianYue"//我的业绩--商业房源--签约
#define TDGMQianYueX @"TdGMQianYueX"//我的业绩--商业房源--签约详情

#define TDPeiRenGou @"TdPeiRenGou"//我的业绩--配套房源--认购
#define TDPeiRenGouX @"TdPeiRenGouX"//我的业绩--配套房源--认购详情


/*置业顾问--我的佣金*/
#define TDYJke @"TdYJKe"//我的佣金--客户列表
#define TDYongJinX @"TdYongJinX"//我的佣金--佣金详情
#define TDYongJieSuanX @"TdYongJieSuanX"//我的佣金--结算详情


/*置业顾问--房源销售*/
#define TDFZhuShouHouse @"TdFZhuShouHouse"//主售房源
#define TDTZhuShouHouseUnit @"TdTZhuShouHouseUnit"//主售房源单元
#define TDFZhuShouHouseMessage @"TdFZhuShouHouseMessage"//主售房源信息

#define TDZhuSBusHouse @"TdZhuSBusHouse"//商业房源
#define TDZhuSPeiHouse @"TdZhuSPeiHouse"//配套房源
#define TDZhuSBiaoTou @"TdZhuSBiaoTou"//表头(配套/商业)
#define TDZhuSHouse @"TdZhuSHouse"//房源(配套/商业)

#define TDZhuSYouHui @"TdZhuSYouHui"//房源优惠
#define TDZhuSYuLiu @"TdZhuSYuLiu"//房源预留



/*销售经理---销售动态*/
#define TDManagerYouHuiBiao @"TdManagerYouHuiBiao"//销售经理--特别优惠列表
#define TDManagerYouHuiXiang @"TdManagerYouHuiXiang"//销售经理--特别优惠详情
#define TDManagerYouHuiChaXun @"特别优惠查询"//特别优惠查询
#define TDManagerYouHuiBaoCun @"特别优惠保存"//特别优惠保存

#define TDManagerFirstSales @"TdManagerFirstSales" //销售经理---销售动态页面--销售动态
#define TDManagerFirstMoney @"TdManagerFirstMoney"//销售经理---销售动态页面--回款动态
#define TDManagerFirstJunJia @"TdManagerFirstJunJia"//销售经理---销售动态页面--均价动态表
#define TDManagerFirstJunBiao @"TdManagerFirstJunBiao" //销售经理---销售动态页面--均价动态t图


/*销售经理---营销分析*/
#define TDManagerSecondKeHu @"TdManagerSecondKeHu" //经理--营销--客户分析
#define TDManagerKeFenXiSouSuo @"TdManagerKeFenXiSouSuo" //经理--营销--客户分析搜索
#define TDManagerSecondQuHua @"TdManagerSecondQuHua" //经理--营销--去化分析
#define TDManagerSecondADBiao @"TdManagerSecondADBiao" //经理--营销--广告表分析
#define TDManagerSecondADTu @"TdManagerSecondADTu" //经理--营销--广告图分析



/*  CEO=======CEO 个人中心--价格审批 */
#define TDCeoMeZhuSPLB @"TdCeoMeZhuSPLB"
#define TDCeoMeZhuUnit @"TdCeoMeZhuUnit"
#define TDCeoMeZhuHouse @"TdCeoMeZhuHouse"
#define TDCeoMeZhuDJSM @"TdCeoMeZhuDJSM"
#define TDCeoMeZhuDJSP @"TdCeoMeZhuDJSP"


#define TDCeoMeBusSPLB @"TdCeoMeBusSPLB"
#define TDCeoMePeiSPLB @"TdCeoMePeiSPLB"
#define TDCeoMeBusPeiShenX @"TdCeoMeBusPeiShenX"
#define TDCeoMeBusPeiDingJ @"TdCeoMeBusPeiDingJ"
#define TDCeoMeBusPeiDingSP @"TdCeoMeBusPeiDingSP"


/*  CEO=======CEO 个人中心--优惠政策审批 */

#define TDCeoYouHLieBIao @"TDCeoYouHLieBIao"
#define TDCeoYouHuiX @"TDCeoYouHuiX"
#define TDCeoYouHShenP @"TDCeoYouHShenP"


/*  CEO=======CEO 个人中心--特别优惠审批 */
#define TDCeoTeBieYouHBiao @"TDCeoTeBieYouHBiao"
#define TDCeoTebIeYouHX @"TDCeoTebIeYouHX"
#define TDCeoTeBieyouHShenP @"TDCeoTeBieyouHShenP"


#define TDCeoMessage @"TdCeoMessage"//小红点





//*来电来访修改           */
#define TDCallGenJin @"来电跟进页面"
#define TDCallGuanHuai @"来电关怀"
#define TDCAllGHBaoCun @"来电关怀保存"
#define TDVisitGenJin @"来访跟进页面"
#define TDVisitGuanHuai @"来访关怀"
#define TDVisitGHBaoCun @"来访关怀保存"
#define TDGenJinXiuGai @"跟进记录修改"




//TODO:  CEO 优惠政策审批
/*-------------------优惠政策列表-------------------*/
#define TDCeoCeTabViewZhu @"列表--主售房源"
#define TDCeoCeTabViewBusness @"列表--商业房源"
#define TDCeoCeTabViewSpking @"列表--车位"
#define TDCeoCeTabViewRoom @"列表--储藏室"


#define TDCeoCeZhuUnit @"主售房源(单元)"
#define TDCeoCezhuHOuse @"主售房源(房源)"
#define TDCeoCeBusness @"商业房源"
#define TDCeoCeSpking @"车位房源"
#define TDCeoCeStoreRoom @"储藏室房源"
#define TDCeoCeYouLook @"优惠查看"
#define TDCeoCeAgree @"优惠政策执行"
#define TDCeoCeUNAgree @"优惠政策驳回"









#define TDLoginState   @"TDLoginState"

//定义请求类型,当请求完成时,根据请求类型做不同的操作
typedef enum
{
    UserOnlyLogin,
    UserGetLogin = 1,
    UseGetYongJinWuTe,
    UserGetJunJiaWuYeType,
    UserGetYongJinZhiYeGuWen,
    UserGetMineGetInfo,
    UserGetMineSetInfo,
    UserGetMineMessage,
    
    UserGuWenWork,//5
    
    USerGuDropDown,//下拉菜单
    UserGuPhone,//7/* 置业顾问---客户管理-来电客户*/
    UserGuPhoneDetails,//6
    UserGuPhoneXiu,
    UserGuPhoneZeng,
    UserGuPhoneGenJinbiao,
    UserGuPhoneGen,
    
    UserGetGMLaiFang,//12/* 置业顾问---客户管理-来访客户*/
    UserGetGMLaiFangX,
    UserGetGMXLaiFang,
    UserGetGMZLaiFang,
    UserGetGMZFangGenBiao,
    UserGetGMLaiFangG,
    
    
    UserGetGuZhuRen,//17/*置业顾问--我的业绩*/
    UserGetGMRenGou,
    UserGetGMRenGouX,
    UserGetGMQianYue,
    UserGetGMQianYueX,
    
    UserGetGMShangRen,
    UserGetGMShangRenX,
    UserGetGMShangQian,
    UsetGetGMShangQianX,
    
    UserGetGMPeiRen,
    UserGetGMPeiRenX,
    
    
    
    UserGetGMYJKe,//21/*置业顾问--我的佣金*/
    UserGetGMYJX,
    UserGetGMJieX,
    
    UserGetFZhuShou,/*置业顾问--房源销售*/
    UserGetFZhuShouUnit,
    UserGetFZhuShouMessage,
    
    
    UserGetZhuSBus,/*置业顾问--房源销售*///商业房源
    UserGetZhuSPei,//配套房源
    UserGetZhuSBiao,//表头(配套/商业)
    UserGetZhuSHouse,//房源(配套/商业)
    
    UserGetYouHui,//房源优惠
    UserGetYuLiu,//房源预留
    
    UserMYouHuiBiao,/*销售经理---优惠*/
    UserMyouHuiXiangQ,
    UserYouHuiCha,
    UserYouHuiBao,
    
    
    UserGetManagerSales,//销售经理---销售动态页面--销售动态
    UserGetManagerMoney,//销售经理---销售动态页面--回款动态
    UserGetManagerJun,//销售经理---销售动态页面--均价动态
    UserGetManagerJunBiao,//销售经理---销售动态页面--均价表动态
    
    
    UserGetManagerHeHu,//经理--营销--客户分析
    UserGetMangerKeFenSouSuo,
    UserGetManagerQuHua,//经理--营销--去化分析
    UserGetManagerADB,//经理--营销--广告表分析
    UserGetManagerAD,//经理--营销--广告图分析
    
    
    /*  CEO=======CEO 个人中心--价格审批 */
    UserGetCeoZhuSPLB,
    UserGetCeoZhuUnit,
    UserGetCeoZhuHouse,
    UserGetCeoZhuDJSM,
    UserGetCeoZhuDJSP,
    
    
    UserGetCeoBusSPLB,
    UserGetCeoPeiSPLB,
    UserGetCeoBusPeiSPX,
    UserGetCeoBusPeiDJSM,
    UserGetCeoBusPeiDJSP,
    
    /*  CEO=======CEO 个人中心--优惠政策审批 */
    UserGetCeoYouHLieB,
    UserGetCeoYouHX,
    UserGetCeoYouHShenP,
    
    
    UserGetCeoTeBieYouHLieB,
    UserGetCeoTeBieYouHX,
    UserGetCeoTeBieYouHShenP,//特别优惠审批
    
   
    UserGetCeoMessage,
    
    
    
    //*来电来访修改           */
    UserCAllGenJin,//来电跟进页面
    UserCallGuanHUai,
    UserCallGuanHuaiBaoCun,
    UserVisitGenJIn,
    UserVIsitGuanHUai,
    UserVisitHuaiBaoCun,
    UserGenJinXiuGai,
    
    
    //TODO:  CEO 优惠政策审批
    /*-------------------优惠政策列表-------------------*/
    UserCeoCeBiaoZhu,
    UserCeoCeBiaoBusness,
    UserCeoCeBiaoSpking,
    UserCeoCeBiaoStoreRoom,
    
    
    UserCeoPiZhuUnit,
    UserCeoPiZhuHouse,
    UserCeoPiBusness,
    UserCeoPiSpking,
    UserCeoPiStoreRoom,
    UserCeoPiYouLook,
    UserCeoPiAgree,
    UserCeoPiUnAgree,
    
    
    
    
    
    
    
    
    
}RequestType;



@interface TodoHttpManager : NSObject<NSURLConnectionDelegate,ASIHTTPRequestDelegate>

{
    ASINetworkQueue *requestQueue;//把所有的请求加入到队列中，除了同步id
}

@property (strong, nonatomic) NSString* serveURLString;
@property (strong, nonatomic) NSString* userName;
@property (assign, nonatomic) BOOL loginState;  //记录登录状态
@property (strong, nonatomic) id delegate;

+(TodoHttpManager*)sharedManager;
+(NSString*)dictionaryToJson:(NSDictionary *)dic;
+(NSDictionary *)parseJSONStringToNSDictionary:(NSString *)JSONString;
+(NSString*)arrayToJson:(NSArray*)ary;
+(NSArray*)parseJSONStringToNSArray:(NSString*)JSONString;

+(void)showImage:(UIImageView *)avatarImageView;



-(void)TurnToLogin;
-(void)Netindicator:(BOOL)_goOrstop andStartStr:(NSString*)_str;

-(void)userOnlyLoginWithName:(NSString *)_name;
-(void)userGetLoginWithUserName:(NSString *)_name andPwd:(NSString *)_pasWd andUid:(NSString *)_uid;//登录


-(void)userYongJinWuYeType;//佣金分析--物业类型下拉
-(void)userJunJiaDongTaiWuYeType;//均价动态--物业类型获取
-(void)userYongJinGuanLiZhiYeGuWen;//佣金管理--置业顾问

-(void)userGetMineInfoGetWithID:(NSString *)_id;//个人信息获取
-(void)userGetMineInfoSetHeadImage:(NSString *)_image andName:(NSString *)_name andUserID:(NSString *)_userId andPwd:(NSString *)_pwd andPhone:(NSString *)_phone;//个人信息修改

-(void)userGetMineMessage;//站内信

-(void)userGuWenWorkID:(NSString *)_id;//工作任务

-(void)userGuWenDropDown;//下拉菜单
-(void)userGuWenPhoneID:(NSString *)_id withSouNei:(NSString *)_sou withDengJi:(NSString *)_deng withKeState:(NSString *)_keSta withPaiFang:(NSString *)_pai;//来电客户
-(void)userGuWenPhoneDetailsID:(NSString *)_id;//来电详情
-(void)userGMXiuLaiDianWithID:(NSString *)_id withName:(NSString *)_name withPhone:(NSString *)_phone withPhone_A:(NSString *)_phone_a withPhone_B:(NSString *)_phone_b withXWuYe:(NSString *)_xWuYe withXArea:(NSString *)_xArea withXhouse:(NSString *)_xHouse withSex:(NSString *)_sex withCallTime:(NSString *)_callPhone withAD:(NSString *)_ad withTQu:(NSString *)_tQu withTWay:(NSString *)_tWay withTName:(NSString *)_tName withTPhone:(NSString *)_tPhone withPhoneJ:(NSString *)_phoneJ withNextTime:(NSString *)_nextTime withKhdj:(NSString *)_khdj;  //修改来电
-(void)userGuwenwithName:(NSString *)_name withPhone:(NSString *)_phone withPhone_a:(NSString *)_phoneA withPhone_B:(NSString *)_phone_b withWuYe:(NSString *)_wuYe withArea :(NSString *)_area withHouse:(NSString *)_house withSex:(NSString *)_sex withPhoneTime:(NSString *)_phoneTime withKeDengJ:(NSString *)_dengJ withAD:(NSString *)_ad withTQu:(NSString *)_tQu withTWay:(NSString *)_tWay withTName:(NSString *)_tName withTPhone:(NSString *)_tPhone withPhoneJ:(NSString *)_phoneJ withNextTime:(NSString *)_nextTime withAdviser:(NSString *)_adviser;//新增来电
-(void)userPhoneGenJinBiaoWithID:(NSString *)_id;//跟进列表
-(void)userGuWenPhoneZengID:(NSString *)_id withGenTime:(NSString *)_genTime withHuiMessage:(NSString *)_message withNextTime:(NSString *)_nextTime withUserID:(NSString *)_userID withType:(NSString *)_type withIsTrue:(NSString *)_isTrue;//添加跟进



/*----------来访客户------*/
-(void)UserGMKeLaiFangWithUserID:(NSString *)_id withKeLevel:(NSString *)_level withJiao:(NSString *)_jiao withSeacher:(NSString *)_seacherCont withPaiXu:(NSString *)_pai;//来访客户
-(void)UserGMKeLaiFangXWithID:(NSString *)_id;//来访详情
//-(void)UserGMKeXLaiFangWithID:(NSString *)_id withShouFTime:(NSString *)_shouTime withName:(NSString *)_name withPhone:(NSString *)_phone withIDCard:(NSString *)_idCard withIdCardDZ:(NSString *)_idCardDZ withSex:(NSString *)_sex withLevel:(NSString *)_level withAge:(NSString *)_age withZhuan:(NSString *)_zhuan withAD:(NSString *)_ad withQuDao:(NSString *)_qu withWay:(NSString *)_way withTName:(NSString *)_tName withTPhone:(NSString *)_tPhone withLive:(NSString *)_live withWork:(NSString *)_work withZhiID:(NSString *)_zhiID withTraffic:(NSString *)_traffic withMdDi:(NSString *)_muDi withBaiMiao:(NSString *)_miao withWuYe:(NSString *)_wuYe withXArea:(NSString *)_xArea withHuX:(NSString *)_huX withYinXu:(NSString *)_yinSu withNextData:(NSString *)_next;//修改来访
//TODO:修改来访
-(void)UserGMKeXLaiFangWithID:(NSString *)_id withShouFTime:(NSString *)_shouTime withName:(NSString *)_name withPhone:(NSString *)_phone withPhone_A:(NSString *)_phone_a withPhone_B:(NSString *)_phone_b withIDCard:(NSString *)_idCard withIdCardDZ:(NSString *)_idCardDZ withSex:(NSString *)_sex withLevel:(NSString *)_level withAge:(NSString *)_age withZhuan:(NSString *)_zhuan withAD:(NSString *)_ad withQuDao:(NSString *)_qu withWay:(NSString *)_way withTName:(NSString *)_tName withTPhone:(NSString *)_tPhone withLive:(NSString *)_live withWork:(NSString *)_work withZhiID:(NSString *)_zhiID withTraffic:(NSString *)_traffic withMdDi:(NSString *)_muDi withBaiMiao:(NSString *)_miao withWuYe:(NSString *)_wuYe withXArea:(NSString *)_xArea withHuX:(NSString *)_huX withYinXu:(NSString *)_yinSu withNextData:(NSString *)_next;

-(void)userGMXinZLaiFangWithShouData:(NSString *)_shouData withKName:(NSString *)_kName withPhone:(NSString *)_phone withPhone_a:(NSString *)_phone_a withPhone_b:(NSString *)_phone_b withIDcard:(NSString *)_idCard withIDcardDZ:(NSString *)_idCardZ withSex:(NSString *)_sex withLevel:(NSString *)_level withAge:(NSString *)_age withZhuan:(NSString *)_zhuan withYing:(NSString *)_ying withWangLuo:(NSString *)_wangLuo withHeZuo:(NSString *)_heZuo withTName:(NSString *)_tName withTPhone:(NSString *)_tPhone withLive:(NSString *)_live withWork:(NSString *)_work withZhiID:(NSString *)_zhiID withTraffic:(NSString *)_traffic withMuDi:(NSString *)_muDi withKeBai:(NSString *)_keMiao withWuYe:(NSString *)_wuYe withXArea:(NSString *)_xArea withXHu:(NSString *)_xHu withKYin:(NSString *)_kYin withNextGData:(NSString *)_nextData withAdviser:(NSString *)_adviser;//新增来访
-(void)userVisitGenJInBiaoWIthID:(NSString *)_id;//跟进列表

-(void)userGMKeLaiFangGenWithID:(NSString *)_id withGenTime:(NSString *)_genTime withHuiMessage:(NSString *)_message withNextTime:(NSString *)_time withUserID:(NSString *)_uesrID withType:(NSString *)_type withIsTrue:(NSString *)_isTrue;//添加跟进


/*------------------置业顾问-------我的业绩主售------------------------*/
-(void)userGuWenMeZhuRenWithID:(NSString *)_id withSouSuo:(NSString *)_sou withSouType:(NSString *)_type withJiaoStatue:(NSString *)_jiao withTuiChou:(NSString *)_tui;//我的业绩主售--认筹
-(void)userGMZhuShouRenGouWithID:(NSString *)_id withSouSuo:(NSString *)_sou withSouType:(NSString *)_type withShouFuState:(NSString *)_houState withQianYState:(NSString *)_qian;//我的业绩主售--认购
-(void)userGMRenGouDatialsWithID:(NSString *)_id;//我的业绩主售--认购详情
-(void)userGMQianYueWithID:(NSString *)_id withSouType:(NSString *)_type withSouSuo:(NSString *)_sou withHuiKuan:(NSString *)_hui;//我的业绩主售--签约
-(void)userGMQianYueDeatailsWithID:(NSString *)_id;//我的业绩主售--签约详情

-(void)userGMShangRenGouWithID:(NSString *)_id withSouSuo:(NSString *)_sou withSouType:(NSString *)_type withShouF:(NSString *)_shou withQianYue:(NSString *)_qian;//我的业绩--商业房源--认购
-(void)userGMShangRenGouXWithID:(NSString *)_id;//我的业绩--商业房源--认购详情
-(void)userGMShnagQianYueWithID:(NSString *)_id withSouSuo:(NSString *)_sou withSouType:(NSString *)_type withHuiK:(NSString *)_hui;//我的业绩--商业房源--签约
-(void)userGMShangQianYueXWitnID:(NSString *)_id;//我的业绩--商业房源--签约详情

-(void)userGMPeiRenGouWithID:(NSString *)_id withSouSuo:(NSString *)_sou withSouType:(NSString *)_type withWuYe:(NSString *)_wu withFangK:(NSString *)_fang;//我的业绩--配套房源--认购
-(void)userGMPeiRenGouXWithID:(NSString *)_id;//我的业绩--配套房源--认购详情

-(void)userGMYongJinKeHuWithID:(NSString *)_id withHuiK:(NSString *)_hui withYongJ:(NSString *)_yong withSouSuoT:(NSString *)_type withSouSuo:(NSString *)_sou;//我的佣金--客户列表
-(void)UserGMYongJinXWithID:(NSString *)_id withType:(NSString *)_type;//我的佣金--佣金详情
-(void)UserGMYongJinJieSuanXwithID:(NSString *)_id withAdviser:(NSString *)_adviserID withWuYeType:(NSString *)_wyType;//我的佣金--结算详情

/*置业顾问--房源销售*/
-(void)userFYZhuShou;//主售房源
-(void)UserTYZhuShouUnitWithID:(NSString *)_id;//主售房源单元
-(void)userFYZhuShouMessageWithLouID:(NSString *)_louID withUnitID:(NSString *)_unitID;//主售房源信息


-(void)userZhuShouHouseBusness;//商业房源
-(void)userZhuShouPeiTaoHouse;//配套房源
-(void)userZhuShouHouseBiaoWithType:(NSString *)_type withQiShu:(NSString *)_qi;//表头(配套/商业)
-(void)userZhuShouFangYuanWithType:(NSString *)_type withQi:(NSString *)_qi withQuYU:(NSString *)_qu withLou:(NSString *)_lou;//房源(配套/商业)


-(void)userZhuShouYouHuiWithID:(NSString *)_id withType:(NSString *)_type withStates:(NSString *)_states;//房源优惠
-(void)userZhuShouYuLiuWithID:(NSString *)_id withType:(NSString *)_type withLiuName:(NSString *)_liuName withLiuTime:(NSString *)_time withBeiZhu:(NSString *)_bei;//房源预留



/*销售经理---销售动态*/
-(void)userManagerYouHuiWithUserId:(NSString *)_userId;//销售经理--特别优惠列表
-(void)userManagerYouHuiXwithID:(NSString *)_id;//销售经理--特别优惠详情
-(void)userManagerYouHuiChaXunWithWuType:(NSString *)_wuType withLouHao:(NSString *)_lou withUnit:(NSString *)_unit withQuYu:(NSString *)_qu withRoom:(NSString *)_room;//特别优惠查询
-(void)userManageryouHuiBaoCunWithID:(NSString *)_id withType:(NSString *)_type withBeiZhu:(NSString *)_beiZhu withDate:(NSString *)_date withWuYe:(NSString *)_wuYe;//特别优惠保存


-(void)userManagerFirstSalesDynamic;//销售经理---销售动态页面--销售动态
-(void)userManagerFirstMoneyDynamic;//销售经理---销售动态页面--回款动态
-(void)userManagerFirstJunJiaDynamic;//销售经理---销售动态页面--均价动态表
-(void)userManagerFirstJunJiaBiaoDynamicWithType:(NSString *)_type;//销售经理---销售动态页面--均价动态图



/*销售经理---营销分析*/
-(void)userManagerSecondKeHua;//经理--营销--客户分析
-(void)userManagerKeFenXiSouSuoWithStartTime:(NSString *)_start withEndTime:(NSString *)_end withType:(NSString *)_type;//经理--营销--客户分析搜索
-(void)userManagerSecondQuHua;//经理--营销--去化分析
-(void)userManagerSecongADBiao;//经理--营销--广告表分析
-(void)userManagerSecondADTu;//经理--营销--广告图分析



  /*  CEO=======CEO 个人中心--价格审批 */
-(void)userCEOZhuShenPiLieBiao;// （主售）审批列表
-(void)userCEOZhuUnitWithID:(NSString *)_id;//（主售）单元
-(void)userCEOZhuhousewithID:(NSString *)_id withUnit:(NSString *)_unit;//（主售）房源
-(void)userCEOZhuDJShuoMingWithID:(NSString *)_id;//（主售）定价说明
-(void)userCEOZhuDJShenPiWithID:(NSString *)_id withUserId:(NSString *)_userID withType:(NSString *)_type withXiuOpinion:(NSString *)_yiJian;//1.1.4--（主售）定价审批





-(void)userCeoBusShenPLB;//1.2--（商业）审批列表
-(void)userCeoPeiShenPLB;//1.3--（配套）审批列表
-(void)userCeoBusPeiShenPXWithID:(NSString *)_id;//1.4--( 配套/商业 )审批详情
-(void)userCeoBUsPeiDingJSMWithID:(NSString *)_id;//1.5--（配套/商业）定价说明
-(void)userCeoBusPeiDJSPiWithID:(NSString *)_id withUserID:(NSString *)_userID withType:(NSString *)_type withXiuYiJ:(NSString *)_yiJ;//1.6--(商业 / 配套)定价审批


/*  CEO=======CEO 个人中心--优惠政策审批 */

-(void)userCeoYouHuiLieBiao;//优惠政策列表
-(void)userCeoYouHuiXWithID:(NSString *)_id;//优惠政策详情
-(void)userCeoYouHuiShenPiWithDid:(NSString *)_did withUid:(NSString *)_uid withType:(NSString *)_type;//优惠政策审批


/*  CEO=======CEO 个人中心--特别优惠政策审批 */
-(void)userCeoTeBieYouHuiLeiBie;//特别优惠列表
-(void)userCeoTeBieYouHuiXWithID:(NSString *)_id;//特别优惠详情
-(void)userCeoTeBieYouHShenPiWithYID:(NSString *)_yid withUID:(NSString *)_uid withType:(NSString *)_type withDJYH:(NSString *)_djyh withZJYH:(NSString *)_zjyh withBL:(NSString *)_bl;//特别优惠审批





-(void)UserCeoMessage;//1.7--消息提醒





//*来电来访修改           */
-(void)userCallGenJinYeMIanWithID:(NSString *)_id;//来电跟进页面
-(void)userCallGUanHuaiWithID:(NSString *)_id;//来电关怀
-(void)userCallGuanHuaiBaoCunWithId:(NSString *)_id withBirthday:(NSString *)_birthCare withBirthDayDate:(NSString *)_birthDate withDayCare:(NSString *)_dayCare withDayDate:(NSString *)_dayDate;//来电关怀保存
-(void)userVisitGenJinWithID:(NSString *)_id;//来访跟进页面
-(void)userVisitGuanHUaiWithID:(NSString *)_id;//来访关怀
-(void)userVisitGuanHuaiBaoCunWithID:(NSString *)_id withBirthCare:(NSString *)_birthCare withBirthDate:(NSString *)_date withDayCare:(NSString *)_dayCare withDayDate:(NSString *)_dayDte;//来访关怀保存
-(void)UserGenJInXiuGaiWithFID:(NSString *)_fid withTID:(NSString *)_tid withBackInFo:(NSString *)_backInfo withRemind:(NSString *)_remindTime withIsTure:(NSString *)_isTure withType:(NSString *)_type;//跟进记录修改





//TODO:  CEO 优惠政策审批---------方法
/*-------------------优惠政策列表-------------------*/

-(void)setUPYouHuiTabViewZhuHouse;//优惠政策列表------主售房源
-(void)SetUpTabViewBusnessHouse;//优惠政策列表------商业房源
-(void)setUpTabViewYouHuiSpking;//优惠政策列表------车位
-(void)setUpStoreRoomYouHui;//优惠政策列表-------储藏室



-(void)setUpCeoShenPiZhuShouUnitWithProjectID:(NSString *)_projectID;//主售房源(单元)

-(void)setUpCeoYouHuiPiZhuShouHouseWithProjectID:(NSString *)_projectID withUnit:(NSString *)_unit;//主售房源(房源)

-(void)setUpCeoShenPiBussnessWithID:(NSString *)_id;//商业房源
-(void)setUpCeoShenPiSpkingWithQuID:(NSString *)_id;//车位房源
-(void)SetUpCeoShenPiStoreRoomWithFloorId:(NSString *)_id;//储藏室房源
-(void)setUPCeoShenPiYouHuiLookWIthZhuID:(NSString *)_roomID withBUsnessID:(NSString *)_UnderID;// 优惠查看
-(void)setUpCeoShenPiYouHuiAgreeWithType:(NSString *)_type withProjectID:(NSString *)_id withUID:(NSString *)_uid;// 优惠政策执行
-(void)setUPCeoYouHUIPiUnAgreeWithType:(NSString *)_type WithID:(NSString *)_id withUid:(NSString *)_uid;// 优惠政策驳回
















-(void)MakeMyselfAlert:(NSString*)_label andIsNeedTitle:(BOOL)_isTitle andShowTime:(NSInteger)_time;//网络的提示

@end
